package com.xms.sdk.service;

import com.xms.sdk.core.OwnerObject;

import java.util.UUID;

/**
 * <p>
 * IDataAssigner
 * </p>
 *
 * @author migo
 * @since 2021/9/6
 */
public interface IDataAssigner {
    boolean assign(UUID entityId, UUID recordId, OwnerObject owner, boolean ignorePermissions) throws Exception;

    boolean assign(com.xms.schema.entity.Entity entityMetadata, com.xms.core.data.Entity entity, OwnerObject owner, boolean ignorePermissions) throws Exception;

    boolean assign(UUID entityId, UUID recordId, OwnerObject owner) throws Exception;

    boolean assign(com.xms.schema.entity.Entity entityMetadata, com.xms.core.data.Entity entity, OwnerObject owner) throws Exception;
}
